﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Webservices
{
    public class Coordination
    {
        /*
    <LatitudeDegree>55</LatitudeDegree>
    <LatitudeMinute>35</LatitudeMinute>
    <LatitudeSecond>0</LatitudeSecond>
    <LatitudeNpeerS>N</LatitudeNpeerS>
    <LongitudeDegree>12</LongitudeDegree>
    <LongitudeMinute>8</LongitudeMinute>
    <LongitudeSeconds>0</LongitudeSeconds>

         */
        public double LatitudeDegree { get; set; }
        public double LatitudeMinute { get; set; }
        public double LatitudeSecond { get; set; }

        public double LongitudeDegree { get; set; }
        public double LongitudeMinute { get; set; }
        public double LongitudeSeconds { get; set; }

        public double GetCoord(double degree, double min, double sec)
        {
            double res = min + (sec / 60);
            double final = (res / 60) + degree;
            return final;
        }
    }
}